package com.vhall.component.entity.inav.vo;

import com.vhall.component.framework.common.annotation.ParamName;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author lsl
 * @since 2021/4/20
 */
public class GetOnlineListReqVO implements Serializable {

    /**
     * paas房间id
     */
    @ParamName("room_id")
    @Pattern(regexp = "[0-9a-zA-Z_]{1,32}", message = "参数异常")
    private String roomId;

    /**
     * 每页数量
     */
    @ParamName("page_size")
    @Min(value = 1, message = "参数异常")
    @Max(value = 200, message = "参数异常")
    private Integer pagesize;

    /**
     * 页码
     */
    @ParamName("page")
    @Min(value = 1, message = "参数异常")
    private Integer page;

    /**
     * 昵称，精准匹配
     */
    @ParamName("nick_name")
    private String nickname;

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public Integer getPagesize() {
        return pagesize;
    }

    public void setPagesize(Integer pagesize) {
        this.pagesize = pagesize;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    @Override
    public String toString() {
        return "GetOnlineListReqVO{" +
                ", roomId='" + roomId + '\'' +
                ", pagesize=" + pagesize +
                ", page=" + page +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}
